package com.cskaoyan.day3._04_homework;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @author Common-zhou
 * @since 2023-03-01 21:43
 */
public class Homework2 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Random r = new Random();
        while (list.size() < 6) {
            int num = r.nextInt(33) + 1;
            if (!list.contains(num)) {
                list.add(num);
            }
        }

        list.add(r.nextInt(16) + 1);
        System.out.println(list);
    }
}
